package cn.bootx.platform.daxpay.core.channel.cash.dao;

import cn.bootx.platform.common.mybatisplus.impl.BaseManager;
import cn.bootx.platform.daxpay.core.channel.cash.entity.CashPayment;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 * 现金支付
 *
 * @author xxm
 * @since 2021/6/23
 */
@Slf4j
@Repository
@RequiredArgsConstructor
public class CashPaymentManager extends BaseManager<CashPaymentMapper, CashPayment> {

    public Optional<CashPayment> findByPaymentId(Long paymentId) {
        return findByField(CashPayment::getPaymentId, paymentId);
    }

}
